<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title><?=$shoptitle?> - <?=WEBTITLE?></title>
<meta name="keywords" content="<?=$shoptitle?>" />
<meta name="description" content="淘宝店铺<?=$shoptitle?>，掌柜：<?=$shopnick?>，平均返现：<?=$fanxianlv?>，店铺所在地：<?=$shopcity?>，宝贝数量：<?=$TotalResults?>，<?=WEBTITLE?>">
<LINK rel=stylesheet type=text/css href="template/<?=MOBAN?>/css/shop.css">
<LINK rel=stylesheet type=text/css href="template/<?=MOBAN?>/css/list.css">
<LINK rel=stylesheet type=text/css href="template/<?=MOBAN?>/css/common.css">
<script type="text/javascript" src="template/<?=MOBAN?>/js/jquery-1.3.2.min.js"></script>
<SCRIPT type="text/javascript" src="template/<?=MOBAN?>/js/base64.js"></SCRIPT>
<SCRIPT type="text/javascript" src="template/<?=MOBAN?>/js/function.js"></SCRIPT>
<SCRIPT type="text/javascript" src="template/<?=MOBAN?>/js/taobao.js"></SCRIPT>
<script language="javascript">
$.ajaxSetup ({
    cache: false //关闭AJAX相应的缓存
});
$(function(){
    $('.checkLogin').click(function(){
		url=$(this).attr('href');
		lay=$(this).attr('layer');
		index=$(this).attr('index');
		$('#jumpbox .detail').hide();
		$('#layer_'+lay).show();
		var ddusername='<?=$_SESSION["duoduouser"]?>';
		if(lay=='goods'){
			var img=$('#splistbox ul li').eq(index).children('.pic').children('a').attr('pic');
		    var price=$('#splistbox ul li').eq(index).find('.jiage').find('b').html();
		    var fx=$('#splistbox ul li').eq(index).find('.fanmi').find('.jiage').find('b').html();
		    $('#jump_pic').attr('src',img);
		    $('#jump_href').attr('href',url);
		    $('.jump_price').text(price);
		    $('#jump_back').text(fx);
		}
		else if(lay=='zg'){
		    var img=$('#left2 .pic img').attr('src');
		    var price=$('#pjfl').html();
		    $('#jump_pic').attr('src',img);
		    $('#jump_href').attr('href',url);
		    $('.jump_price').html(price);
		}
		
	    if(ddusername!=''){
			window.open(url);
		}
		else{
		    $('.jumpbox').show();
		}
	return false;
	});
	
	$('#jumpclose').click(function(){
	    $('.jumpbox').hide();
	});
});

</script>
</head>

<body>
<?php
include("header.tpl.php");
?>
<?php
include("nav.tpl.php");
?>
<div id="weizhi">当前位置：<a href="index<?=$end?>">首页</a> > <a href="shoplist<?=$end?>">淘宝店铺</a></div>
<div id="main" style="font-size:12px; height:auto;">
	<div id="right2">
		<?php
		include("searchbar.tpl.php");
		?>
		<div class="small_big" id="layerPic">
			<div class="sell_bg"></div>
			<div class="photo"><img src="template/<?=MOBAN?>/images/pro_05.gif" /></div>
		 </div>
		<?php
		include("list".$list.".tpl.php");
		?>
		<div class="megas512" style="text-align:left; margin:15px 0"><?php 
				pageft($total,$pagesize,1,0,0,10,$page_shop);
				echo $pagenav;?>
		</div>
	</div>
	
	<div id="left2">
		<DIV class=right style="float:left; width:200px;">
		<DIV class=detail>
		<DIV class=shop_name><A href="#" class="checkLogin" layer="zg" target=_blank><?=$shoptitle?></A></DIV>
		<DIV class=pic><SCRIPT language=javascript>setPic('<?php echo base64_encode("http://logo.taobao.com/shop-logo/".$shoppic)?>',80,80,'<?php echo $row["title"] ?>');</SCRIPT>平均返现：<br /><SPAN id="pjfl"><?=$fanxianlv?><FONT>%</FONT></SPAN>
		</DIV>
		<DIV class=zg>掌柜名称：<a href="shop<?=$url_head_nick?><?=urlencode($shopnick)?><?=$url_end?>"><?=$shopnick?></a><BR>信 誉：<IMG src="images/level_<?=$shoplevel?>.gif" height=16><BR>
		区域：<?=$shopstate?> <?=$shopcity?><BR>
		宝贝数量：<?=$TotalResults?><BR>
		创店时间：<?=date('Y-m-d',strtotime($shopcreated))?><BR>
		<STRONG>店铺动态评分</STRONG><BR>
		<UL>
		  <LI>宝贝与描述相符：<img src="images/<?php echo ShowStar($item_score);?>.gif" /><?=$item_score?></LI>
		  <LI>卖家的服务态度：<img src="images/<?php echo ShowStar($service_score);?>.gif" /><?=$service_score?></LI>
		  <LI>卖家发货的速度：<img src="images/<?php echo ShowStar($delivery_score);?>.gif" /></SPAN><?=$delivery_score?></LI>
		  </UL>
		  </DIV>
		  <div style="width:127px; height:45px; margin:15px auto 0 auto;"><a href="gotoshop.php?sid=<?=$sid?>" class="checkLogin" layer="zg"><img src="template/<?=MOBAN?>/images/jrdp.gif" /></a></div>
		  </DIV>
		</DIV>
        	  <div id="ad7">
		<?php
		AD(7);
		?>
		</div>
	</div>
    <div class="clear"></div>
	<?php
	include("footer.tpl.php");
	?>
</div>
</body>
</html>
